package com.firebroo.Chain;

public class GeneralManager extends Handler {

	@Override
	public String handleFreeRequest(String user, double free) {
		String string = "";
		if(free > 1000){
			if("firebroo".equals(user)){
				string = "成功：总经理同意【" + user + "】的聚餐费用，金额为" + free + "元";
			}else{
				string = "失败：总经理不同意【" + user + "】的聚餐费用，金额为" + free + "元";
			}
		}else{
			if(getSuccessor() != null){
				return getSuccessor().handleFreeRequest(user, free);
			}
		}
		return string;
	}
}
